/*
 * Copyright (c) 2022 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef OHOS_CAST_ENGINE_DLNASERVICEPROXY_H
#define OHOS_CAST_ENGINE_DLNASERVICEPROXY_H

#include "i_cast_engine_dlna_service.h"
#include <iremote_proxy.h>

namespace OHOS {
namespace CastEngine {
namespace CastEngineService {

class  __attribute__((visibility("default")))CastEngineDlnaServiceProxy : public IRemoteProxy<ICastEngineDlnaService> {
public:
    explicit CastEngineDlnaServiceProxy(
        /* [in] */ const sptr<IRemoteObject>& remote)
        : IRemoteProxy<ICastEngineDlnaService>(remote)
    {}

    virtual ~CastEngineDlnaServiceProxy()
    {}

    virtual int32_t Play()override; 
    virtual int32_t Pause()override;
    virtual int32_t Stop()override;
    virtual int32_t Forward(int &seconds)override;
    virtual int32_t Backward(int &seconds)override; 
    virtual int32_t GetPosition(int &position)override;
    virtual int32_t GetPlayerStatus(int32_t &playerStates)override; 
    virtual int32_t GetDuration(int32_t &playerStates)override;
    virtual int32_t Seek(int position)override; 
    virtual int32_t SetSurfaceId(std::string surfaceId) override;
    virtual int32_t SetDmrSurface(sptr<IBufferProducer> producer) override;

    virtual int32_t SendDmrPlayer(
        /* [in] */ const sptr<IRemoteObject> &object) override;
    virtual int32_t GetDlnaDeviceName(std::string &deviceName) override;
    virtual int32_t SetDlnaDeviceName(const std::string &deviceName) override;
    virtual int32_t GetDmrState(DmrStates& dmrState) override;
    virtual int32_t GetVolume(int &volume, int &maxVolume) override;
    virtual int32_t SetVolume(int volume) override;
    virtual int32_t AuthDeviceFail() override;

private:

    static inline BrokerDelegator<CastEngineDlnaServiceProxy> delegator_;
    

};
}// namespace CastEngineService
}// namespace CastEngine
}// namespace OHOS
#endif // OHOS_DLNASERVICEPROXY_H

